import json

result_dict = json.loads('{"city":"北京","name":"小明"}')
print(result_dict)

with open("dict_str.json", 'r',encoding='utf-8') as file:
    file_content = file.read()
result_dict2 = json.loads(file_content)
print(result_dict2)